#pragma once
#include "Animation.h"
#include "SkCanvas.h"
class View;
class ColorAnimation :
	public Animation
{
public:
	ColorAnimation(int max_step, int grain);
	virtual ~ColorAnimation();

	void AnimateColorTo(View* view, SkColor& old_color, SkColor& new_color);

	SkColor getTempColor();
private:
	virtual bool step(int step_num);
	SkColor old_color_;
	SkColor new_color_;
	View* object_view_;

	SkColor temp_color_;
};

